package  com.pcbly.web.business.news;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.news.NewsConfigBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface NewsConfigService extends BaseService<NewsConfigBean> {

	NewsConfigBean getNewsConfigBeanById(String id) throws Exception;
	
	void removeNewsConfigBeanById(String id) throws Exception;
	
	void removeNewsConfigBeanByIds(String ids) throws Exception;
	
	NewsConfigBean saveNewsConfigBean(NewsConfigBean news) throws Exception;
	
	NewsConfigBean updateNewsConfigBean(NewsConfigBean news) throws Exception;
	
	Page<NewsConfigBean>  findNewsConfigBeanByCond(NewsConfigBean bean,
			Page<NewsConfigBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveNewsConfigBeanExt(String sql) throws Exception;

	String findNewsConfigBeanExtCreate(String tableName) throws Exception;

	String findNewsConfigBeanExtEdit(String tableName, String id)
			throws Exception;

	String findNewsConfigBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasNewsConfigBeanExtData(String tableName, String id)
			throws Exception;
}